From: Adel Gadllah Date: Thu, 24 Jul 2014 13:40:19 +0000 (+0200) Subject: lightbox: Do not assume GLSL is available X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2316 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9a05aea76f593afa8977abdfe0e4e7df720158e3;p=gnome-shell.git lightbox: Do not assume GLSL is available Some hardware does not support it causing crashes in cogl during paint. https://bugzilla.gnome.org/show_bug.cgi?id=733623 --- diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js index 4b07debad..2188b23b3 100644 --- a/js/ui/lightbox.js +++ b/js/ui/lightbox.js @@ -105,8 +105,8 @@ const Lightbox = new Lang.Class({ this._container = container; this._children = container.get_children(); this._fadeFactor = params.fadeFactor; - this._radialEffect = params.radialEffect; - if (params.radialEffect) + this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect; + if (this._radialEffect) this.actor = new RadialShaderQuad({ x: 0, y: 0, reactive: params.inhibitEvents });